<template>
	<view class="uni_box home">
		<!-- <navbar title=''>
		</navbar> -->
		<view class="content">
			<image class="img_bjtuan" src="/static/img/img_bjtwo.png"></image>
			<view class="qianview">
				<view class="jione">
					<image class="img_hb" src="/static/img/img_hb.png"></image>
					<image class="icon_back" src="/static/img/icon_backtwo.png" @click="getfan"></image>
					<view class="huoview">
						<image class="huodong" src="/static/img/huodong.png"></image>
					</view>
				</view>
				<view class="htwo">

					<view class="htwolist" v-for="(item,index) in nlist" @click="listClicktwo(item)">
						<image class="imgone" :src="item.image"></image>
						<view class="listnav">
							<text class="lone">{{ item.title }}</text>
							<text class="lmiao">{{item.descript}}</text>
						</view>
						<view class="ml canyu">立即参与</view>
					</view>

					<!-- <view class="htwolist" @click="listClick(1)">
						<image class="imgone" src="/static/img/imgone.png"></image>
						<view class="listnav">
							<text class="lone">邀好友、每日得奖励</text>
							<text class="lmiao">好友每日浏览1次项目</text>
							<text class="lmiao">即可获得1元奖励、间推团队也有哦~~</text>
						</view>
						<view class="ml canyu">立即参与</view>
					</view>
					<view class="htwolist" @click="listClick(2)">
						<image class="imgone" src="/static/img/imgtwo.png"></image>
						<view class="listnav">
							<text class="lone">邀好友、发项目</text>
							<text class="lmiao">每邀请1位好友首次发布项目</text>
							<text class="lmiao">审核通过、上级即可获得1元奖励</text>
						</view>
						<view class="ml canyu">立即参与</view>
					</view>
					<view class="htwolist" @click="listClick(3)">
						<image class="imgone" src="/static/img/imgthree.png"></image>
						<view class="listnav">
							<text class="lone">加群抢66红包</text>
							<text class="lmiao">添加官方群、每天66红包</text>
							<text class="lmiao">另外还有更多小红包福利等你来参与~~</text>
						</view>
						<view class="ml canyu">立即参与</view>
					</view>
					<view class="htwolist" @click="listClick(4)">
						<image class="imgone" src="/static/img/imgfour.png"></image>
						<view class="listnav">
							<text class="lone">邀请好友得现金奖励</text>
							<text class="lmiao">邀请好友得现金奖励</text>
							<text class="lmiao">另外还有更多小红包福利等你来参与~~</text>
						</view>
						<view class="ml canyu">立即参与</view>
					</view> -->
					
				</view>
				
				</view>
			</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				teaminfo:[],
				ftxtcont:{},
				info:{},
				list:[
					{id:1,name:'邀好友、每日得奖励',biaoqian:'好友每日浏览1次项目',bianqian2:'即可获得1元奖励、间推团队也有哦~~',img:'/static/img/imgone.png'}
				],
				nlist:[]
			}
		},
		onLoad() {
			this.getinit();
			// this.ftxt();//富文本
			// this.fgetMyTeamContent();//获取上面信息
		},
		onShow() {
		},
		methods: {
			async ftxt(){
				let res = await this.$u.api.getContent({
					code:'my-team'
				});
				this.ftxtcont = res
			},
			async getinit(){
				let res = await this.$u.api.getActivityList({
				});
				this.nlist = res
			},
			async fgetMyTeamContent(){
				let res = await this.$u.api.getMyTeamContent({
				});
				this.info = res
			},
			getji(e){
				console.log("+++")
				this.navrouter("/pages_subject/twoPage/MyTeamList?type="+e);
			},
			getfan(){
				uni.navigateBack()
			},
			getyao(){
				this.navrouter('/pages/TPage/YaoPage')
			},
			listClick(e){
				if(e == 1){
					this.navrouter("/pages_subject/twoPage/LaXin");
				}else if(e == 2){
					//
					this.navrouter("/pages_subject/twoPage/AcivityInvite");
				}else if(e == 3){
					//
					this.navrouter("/pages/TPage/Xieyi?type=xmyhfbxy");
				}else if(e == 4){
					//
					this.navrouter("/pages/TPage/Xieyi?type=xmyhfbxy");
				}
			},
			listClicktwo(item){
				this.navrouter(item.page);
				// this.navrouter("/pages/TPage/Xieyi?type=yonghuxieyi");
			},
			
		}
	}
</script>

<style lang="scss" scoped>
	page{
		background-color: #fff;
	}
	.content{
		min-height: 100vh;
		background-color: #f5f5f5;
		position: relative;
		padding-bottom: 30rpx;
		.img_bjtuan{
			position: absolute;
			width: 100%;
			height: 100%;
		}
		.qianview{
			position: relative;
			.jione{
				position: relative;
				display: flex;
				flex-direction: row;
				align-items: center;
				justify-content: flex-start;
				// padding: 30rpx 0 0 30rpx;
				height: 408rpx;
				
			}
			.img_hb{
				position: absolute;
				width: 100%;
				height: 100%;
			}
			.huoview{
				position: relative;
				width: 100%;
				height: 100%;
				display: flex;
				align-items: center;
				padding-left: 50rpx;
				.huodong{
					width: 228rpx;
					height: 55rpx;
					position: relative;
				}
			}
			.icon_back{
				width: 40rpx;
				height: 40rpx;
				position: absolute;
				left: 30rpx;
				top: 30rpx;
				// #ifdef APP-PLUS
				top: calc(var(--status-bar-height) + 30rpx);
				// #endif
				z-index: 1;
			}
			.htit{
				font-family: PingFang SC;
				font-weight: bold;
				font-size: 36rpx;
				color: #FFFFFF;
			}
			.jiview{
				margin-left: auto;
				width: 126rpx;
				height: 60rpx;
				background: rgba(0,0,0,0.2);
				border-radius: 30rpx 0rpx 0rpx 30rpx;
				display: flex;
				align-items: center;
				justify-content: center;
				.jilu{
					width: 44rpx;
					height: 44rpx;
					margin-right: 4rpx;
				}
				.jitit{
					font-family: PingFang SC;
					font-weight: 500;
					font-size: 24rpx;
					color: #FFFFFF;
				}
			}
		}
		.htwo{
			position: relative;
			padding: 0 20rpx;
			.htwolist{
				background: #FFFFFF;
				border-radius: 24rpx;
				display: flex;
				flex-direction: row;
				align-items: center;
				padding: 20rpx 20rpx 20rpx 13rpx;
				margin-bottom: 20rpx;
				.imgone{
					width: 120rpx;
					height: 120rpx;
					margin-right: 13rpx;
				}
				.listnav{
					display: flex;
					flex-direction: column;
					width: 63%;
					.lone{
						font-weight: bold;
						font-size: 30rpx;
						color: #111111;
						display: block;
						margin-bottom: 5rpx;
					}
					.lmiao{
						font-weight: 500;
						font-size: 24rpx;
						color: #C07F7F;
					}
				}
				.canyu{
					width: 140rpx;
					height: 50rpx;
					background: linear-gradient(-82deg, #4BB6F0, #1D8DFD);
					border-radius: 12rpx;
					display: flex;
					align-items: center;
					justify-content: center;
					font-weight: 500;
					font-size: 24rpx;
					color: #FFFFFF;
				}
			}
		}
		.tone{
			margin: 45rpx;
			position: relative;
			// height: 690rpx;
			height: 420px;
			// padding: 0 0 0 30rpx;
			.tnav{
				position: absolute;
				width: 100%;
				height: 100%;

			}
			.toneview{
				position: relative;
				width: 100%;
				height: 100%;
				display: flex;
				flex-direction: column;

			}
			.tbiao{
				font-family: PingFang SC;
				font-weight: bold;
				font-size: 28rpx;
				color: #FBE062;
				display: flex;
				align-items: center;
				justify-content: center;
				height: 43px;
				margin-bottom: 50rpx;

			}
			.futxt{
				padding: 30rpx;
			}
			.tming{
				// margin-top: 60rpx;
				margin-bottom: 20rpx;
				display: flex;
				flex-direction: row;
				align-items: center;
				.mname{
					font-family: Source Han Sans CN;
					font-weight: bold;
					font-size: 60rpx;
					color: #F52517;
					width: 18%;
					display: flex;
					align-items: center;
					justify-content: center;
				}
				.mright{
					flex: 1;
					padding: 30rpx 30rpx;
					background: #F2EDDF;
					border-radius: 16rpx;
					margin-right: 40rpx;
					text{
						display: block;
						font-family: PingFang SC;
						font-weight: 500;
						font-size: 26rpx;
						color: #F52517;
						display: block;
						margin-bottom: 4rpx;
					}
					text:last-child{
						margin-bottom: 0;
					}
				}
			}
		}
		.ttwo{
			position: relative;
			margin: 100rpx 60rpx 30rpx;
			height: 116rpx;
			.btn_an{
				position: absolute;
				width: 100%;
				height: 100%;
			}
			.yaoview{
				position: relative;
				width: 100%;
				height: 100%;
				display: flex;
				align-items: center;
				justify-content: center;
				font-family: PingFang SC;
				font-weight: bold;
				font-size: 32rpx;
				color: #6C420C;
			}
		}

		.tthree{
			padding: 0 30rpx;
			display: flex;
			flex-direction: column;
			.youlist{
				display: flex;
				flex-direction: row;
				justify-content: space-between;
				.youitem{
					width: 48%;
					padding: 20rpx 30rpx;
					background: #FFFFFF;
					border-radius: 20rpx;
					display: flex;
					flex-direction: column;
					.youone{
						display: flex;
						flex-direction: row;
						align-items: center;
						.oneicon{
							width: 32rpx;
							height: 32rpx;
							margin-right: 8rpx;
						}
						.yitit{
							font-family: PingFang SC;
							font-weight: bold;
							font-size: 28rpx;
							color: #000000;
						}
					}
					.yname{
						display: block;
						font-family: PingFang SC;
						font-weight: 500;
						font-size: 24rpx;
						color: #666666;
						margin-top: 10rpx;
					}
					.ynum{
						color: #F54320;
						display: inline-block;
						margin: 0 4rpx;
						font-size: 32rpx;
					}
				}
				.ml{
					margin-left: auto;
				}
			}
			.jiviewbot{
				display: flex;
				flex-direction: row;
				padding-bottom: 40rpx;
				margin-top: 50rpx;
				align-items: center;
				.jiitem{
					width: 50%;
					display: flex;
					align-items: center;
					justify-content: center;
					flex-direction: column;
					.img_yj{
						width: 110rpx;
						height: 110rpx;
						margin-bottom: 9rpx;
					}
					.yjname{
						font-family: PingFang SC;
						font-weight: bold;
						font-size: 24rpx;
						color: #FFFFFF;
					}
					.yjnum{
						font-weight: bold;
						font-size: 36rpx;
						color: #FFFFFF;
					}
				}
				.shu{
					display: inline-block;
					width: 2rpx;
					height: 50rpx;
					background: #EEEEEE;
					opacity: 0.5;
				}
			}
		}
	}
	
</style>
